package com.gugee.tiktok.data.consumer.blogger.core.service;


import com.gugee.tiktok.common.model.AwemeScore;
import com.gugee.tiktok.common.model.mysql.Aweme;
import com.gugee.tiktok.common.model.dto.BloggerAwemeExtendDto;
import com.gugee.tiktok.common.model.dto.BloggerRecordAwemeExtendDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;


@Component
public class AwemeClient {
    @Autowired
    AwemeService awemeService;

    public BloggerAwemeExtendDto getBloggerAwemeExtend(long uid) {
        return awemeService.getBloggerAwemeExtendDto(uid);
    }

    public void refreshBloggerAweme(String bloggerType,long uid){
          awemeService.refreshBloggerAweme(bloggerType,uid);
    }

    public void refreshBloggerAwemeForES(long uid){
         awemeService.refreshBloggerAwemeForES(uid);
    }

    public BloggerRecordAwemeExtendDto getBloggerRecordAwemeExtendDto(long uid){
        return awemeService.getBloggerRecordAwemeExtendDto(uid);
    }

    public BloggerRecordAwemeExtendDto getBloggerRecordAwemeExtendDto(long uid,int day){
        return awemeService.getBloggerRecordAwemeExtendDto(uid,day);
    }

    public BloggerRecordAwemeExtendDto getBloggerRecordForZeroTimeAwemeExtendDto(long uid,int day){
        return awemeService.getBloggerRecordForZeroTimeAwemeExtendDto(uid,day);
    }

    public void refreshBloggerAwemeScore(AwemeScore tikTokScore){
        awemeService.refreshBloggerAwemeScore(tikTokScore);
    }

    public List<Aweme> get24HourBloggerAwemes(long uid){
        List<Aweme> bloggerAweme = awemeService.get24HourBloggerAwemes(uid);
        return bloggerAweme;
    }

    public List<Aweme> getBloggerAwemes(long uid) {
        return awemeService.getBloggerAwemes(uid);
    }
}
